package com.laolang.shop.modules.seller.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/4 20:09
 */
@Data
public class Seller {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;
    private Long tenantId;
    /**
     * 店铺名称
     */
    private String name;

    /**
     * 销售总额
     */
    private BigDecimal saleroomTotal;

    /**
     * 总订单量
     */
    private Integer orderTotal;

    /**
     * 总完成订单量
     */
    private Integer orderFinishTotal;

    /**
     * 是否自营店
     */
    private Integer ownerStores;


    private Integer status;
    private String notice;
    private String logo;
    /**
     * 上架商品总数量
     */
    private Integer onSaleTotal;

    /**
     * 下架商品总数量
     */
    private Integer unSaleTotal;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @Version
    private Integer version;
}
